//
//  KDHomeListPageCellModel.m
//  PublicSentimentMonitorSystem
//
//  Created by 魏强 on 15/6/18.
//  Copyright (c) 2015年 魏强. All rights reserved.
//

#import "KDHomeListPageCellModel.h"
@implementation KDHomeListPageCellModel
+ (NSDictionary *)replacedKeyFromPropertyName
{
    return @{@"isSave":@"save"};
}
- (void)encodeWithCoder:(NSCoder *)encoder
{
    [encoder encodeObject:self._id forKey:@"_id"];
    [encoder encodeObject:self.title forKey:@"title"];
    [encoder encodeObject:self.source forKey:@"source"];
    [encoder encodeObject:self.author forKey:@"author"];
    [encoder encodeObject:self.date forKey:@"date"];
    [encoder encodeObject:self.idstr forKey:@"idstr"];
    [encoder encodeObject:self.parentID forKey:@"parentID"];
}
- (id)initWithCoder:(NSCoder *)decoder
{
    if (self = [super init]) {
        self._id = [decoder decodeObjectForKey:@"_id"];
        self.title = [decoder decodeObjectForKey:@"title"];
        self.source = [decoder decodeObjectForKey:@"source"];
        self.author = [decoder decodeObjectForKey:@"author"];
        self.date = [decoder decodeObjectForKey:@"date"];
        self.idstr = [decoder decodeObjectForKey:@"idstr"];
        self.parentID = [decoder decodeObjectForKey:@"parentID"];
    }
    return self;
}
@end
